#include "TcpServer.hpp"
#include "CommExec.hpp"
#include<memory>

int main()
{
    LogModule::ENABLE_CONSOLE_LOG();

    Command cmd;
    std::unique_ptr<TcpServer> ts = std::make_unique<TcpServer>([&cmd](std::string cmdstr){
        return cmd.Excute(cmdstr);
    });
    ts->InitServer();
    ts->Start();
    return 0;
}